<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title> </title>
</head>
  <body>   
    <div th:fragment="login-head"  style="background:silver">
        <span>这是给别人引入用的, 用的是 th:fragment </span>
    </div>
    
    <p id="left" style="background:yellow">
        <span>这是给别人引入的,用的是 id  </span>
    </p>
    
    <div th:fragment="login-left (dog,cat)">  
		 <p th:text=" ${dog} + '-'+  ${cat}"  >別人引的時候可以传参数过来</p>
	</div>

  </body>
</html>